package com.pearl.generator.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author TangDan
 * @version 1.0
 * @since 2022/8/8
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum YesOrNo {
    NO(0, "否"),
    Yes(1, "是");

    private int type;
    private String value;

    public static  boolean isTrue(int type) {
        return type == Yes.getType();
    }
}
